
#include<iostream>
#include<fcntl.h>
#include<sys/stat.h>
#include<unistd.h>
#include<sys/types.h>

std::string terminal = "/dev/pts/1";

void OpenTerminal()
{
    int fd = open(terminal.c_str(),O_WRONLY);
    if(fd < 0)
    {
        std::cerr << "open error" << std::endl;
        return;
    }
    dup2(fd,2);



}
